<html><head><title>Data sources in %PRODUCTNAME</title><meta name="filename" content="text/common/explorer/database/11000002"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
table.Tabelle2{
}
span.Tabelle2A{
width:1.499cm;}
span.Tabelle2B{
width:16.498cm;}
tr.Tabelle21{
}
td.Tabelle2A1{
}
p.P1{
}
span.T1{
font-weight:bold;}
span.fr1{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><a name="datenbankeninstaroffice"/><help:link Id="66154" xmlns:help="http://openoffice.org/2000/help">Data sources in <help:productname>%PRODUCTNAME</help:productname></help:link></p>
<p class="Paragraph">This is where you find information about data sources in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>.<a name="ende"/></p>
<p class="Paragraph">The following are also explained on this page:</p>
<p class="Paragraph">In a dialog you can define which data field from your system address book is assigned to which placeholder. This dialog can be started by choosing <help:link Id="67814"><span style="font-weight:bold;">File - Template - Address Book Source</span></help:link>; apart from this, it starts automatically when you access one of our templates for the first time and this assignment has not yet taken place.</p>
</help:to-be-embedded>
<p class="Head2"><a name="einrichten"/>Create a new data source</p>
<p class="Paragraph">In a dialog, from <span class="T1">Tools - Data Sources</span>, you can specify the data source, give it a name by which it is addressed in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> and, depending on the type selected, specify various options.</p>
<p class="Paragraph">When setting up an existing database in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>, simply indicate the data source. If you will be using a text or dBase database then this will be a folder containing the database together with its tables. All of the tables (database files) together in one folder (directory) form a database.</p>
<p class="Paragraph">Registering a data source in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> is in essence no different from creating a link to the database. This link allows you access to the data.</p>
<p class="Head2"><a name="oeffnen"/>To open a data source</p>
<p class="Paragraph">The data source view is shown/hidden by pressing the (F4) key with a text, spreadsheet or form document open.</p>
<p class="Paragraph">If you open a data source by clicking the + in front of its name, you see the entries for links, queries and tables.</p>
<p class="Head2"><a name="kopieren"/><help:key-word value="databases; moving per drag and drop" tag="kw66154_1" xmlns:help="http://openoffice.org/2000/help"/>Copying and Moving Database Objects using Drag and Drop</p>
<p class="Paragraph">You can exchange database contents within <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> using Drag&Drop. You can easily create copies of a database object within a database this way as well. For example, to create a new query that differs only slightly from an existing query, simply copy this query and then make the changes in Query Design.</p>
<p class="Paragraph">It is also possible for you to drop a table or selected parts of tables from a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer document, an HTML document or from <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc into a table container using drag and drop. You can just as easily drag, for example, a table from the data source view into a text document.</p>
<p class="Paragraph">Database objects can also be copied and moved. When they are copied, the original stays where it is; when they are moved, it is deleted. To copy an object, simply drag it to the desired location with the mouse. To move it, hold down the shift key while dragging. You can also select multiple objects! To copy or move database objects, select them one after the other, and then drag the selection to the target destination with the mouse.</p>
<p class="Paragraph">When converting between various database types, it should be noted that the field definitions follow different conventions. Field or column names in dBase tables should, for example, only be 10 characters long, but for Adabas tables they can be 18 characters long.</p>
<p class="Paragraph">If you copy or move a table with Drag&Drop and the field length in the destination table is smaller than in the source table, a dialog will ask you to rename the field. You can also use the Auto button in the dialog to have <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> adapt the names automatically.</p>
</span></th></tr></table>
<p class="Head3">Copy or move query</p>
<p class="Paragraph">When you use Drag&Drop for a query, the query is copied when you let it drop over a query container. Holding down the Shift key as you drag will move the query. If there is already a query of the same name, the <span class="T1">New Name</span> dialog box appears in which you must enter a new name for the copy.</p>
<p class="Paragraph">If you drag the query onto a table container instead of a query container, the query will be treated as a table.</p>
<p class="Paragraph">If you use Drag&Drop to copy or move multiple queries at the same time, the program prompts you about the copy procedure for each query.</p>
<p class="Paragraph"><help:help-text value="hide" xmlns:help="http://openoffice.org/2000/help">Enter a new name here under which the copy will be saved.</help:help-text> If you want to copy or move a database object and another object already exists with the same name, you can enter a new name in the <span class="T1">New Name</span> dialog. If you cancel this dialog, the copying process will not start.</p>